import request from '@/utils/http';

// 证书列表
export const getCertificateList = query => {
	return request({
		url: '/sys/certificate/main/list',
		method: 'get',
		params: query
	});
};
//证书详情
export const getCertificateDetail = query => {
	return request({
		url: '/sys/certificate/main/queryById',
		method: 'get',
		params: query
	});
};
//新增证书
export const certificateAdd = query => {
	return request({
		url: '/sys/certificate/main/add',
		method: 'post',
		data: query
	});
};
//编辑证书
export const certificateEdit = query => {
	return request({
		url: '/sys/certificate/main/edit',
		method: 'post',
		data: query
	});
};
//删除证书
export const certificateDel = query => {
	return request({
		url: '/sys/certificate/main/delete',
		method: 'delete',
		params: query
	});
};
//证书模板列表
export const getCertificateTemplateList = query => {
	return request({
		url: '/sys/certificate/certificateDetail/list',
		method: 'get',
		params: query
	});
};
//自定义配置证书模块-新增
export const certificateCustomAdd = query => {
	return request({
		url: '/sys/certificate/certificateDetail/add',
		method: 'post',
		data: query
	});
};
//自定义配置证书模块-编辑
export const certificateCustomEdit = query => {
	return request({
		url: '/sys/certificate/certificateDetail/edit',
		method: 'post',
		data: query
	});
};
//自定义配置证书模块-详情
export const certificateCustomDetail = query => {
	return request({
		url: '/sys/certificate/certificateDetail/queryById',
		method: 'get',
		params: query
	});
};
